<tr class="prop">
  <td valign="top" class="name">
    <label for="line1">Address Line 1:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'line1','errors')}">
    <input type="text" id="line1" name="line1" value="${fieldValue(bean:address,field:'line1')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="line2">Address Line 2:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'line2','errors')}">
    <input type="text" id="line2" name="line2" value="${fieldValue(bean:address,field:'line2')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="suite">Suite:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'suite','errors')}">
    <input type="text" id="suite" name="suite" value="${fieldValue(bean:address,field:'suite')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="city">City:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'city','errors')}">
    <input type="text" id="city" name="city" value="${fieldValue(bean:address,field:'city')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="state">State:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'state','errors')}">
    <g:select optionKey="id" from="${State.list()}" name="state.id" value="${address?.state?.id}" ></g:select>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="postalCode">Zip:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'postalCode','errors')}">
    <input type="text" id="postalCode" name="postalCode" value="${fieldValue(bean:address,field:'postalCode')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="country">Country:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'country','errors')}">
    <input type="text" id="country" name="country" value="${fieldValue(bean:address,field:'country')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="type">Type:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:address,field:'type','errors')}">
    <g:select optionKey="id" from="${AddressType.list()}" name="address.type.id" value="${address?.type?.id}" ></g:select>
  </td>
</tr>
